package lab02.test29;

/**
 * Created by dell on 2017/11/2.
 */
public class Test {
    public static void main(String[] args) {
        int[] numbers=new int[5];
        //快捷键Ctrl+D
        numbers[0]=12;
        numbers[1]=14;
        numbers[2]=16;
        numbers[3]=18;
        numbers[4]=20;
        try{
            System.out.println(numbers[5]);
        }catch(ArrayIndexOutOfBoundsException e){
            //e为变量，前面的为其变量类型
            System.out.println("数组下标越界！");
        }finally{
            System.out.println("不管怎样都会执行的代码！");
        }
        //数组：量词
        //

    }
}
